package com.epin.business.commons.service;

import java.util.List;

import com.baomidou.mybatisplus.service.IService;
import com.epin.base.exception.check.RecordQuoteException;
import com.epin.business.commons.entity.UploadFile;


/**
 * <p>
 * 附件上传表 服务类
 * </p>
 *
 * @author fujiajun
 * @since 2017-10-10
 */
public interface UploadFileService extends IService<UploadFile> {
	
	
	/**
	 * <p>通过逻辑地址获取文件名</p>
	 * 
	 * @param logicPath 逻辑地址
	 * 
	 * @return String
	 * 
	 * @author fujiajun
	 * @since 2017-10-26
	 */
	String selectFileNameByLogicPath(String logicPath);
	
	
	/**
	 * <p>根据ID删除文件</p>
	 * 
	 * @param ids 文件ID数组
	 * 
	 * @return boolean
	 * @throws RecordQuoteException
	 * 
	 * @author fujiajun
	 * @since 2017-10-27
	 */
	boolean deleteFilesByIds(List<Integer> ids) throws RecordQuoteException;
	
}
